<?php
/* ini_set('display_errors',1);
  error_reporting(E_ALL); */
error_reporting(0);
include '../class/Carrega.class.php';

session_start();
if (isset($_SESSION['sessaousuario'])) {
    $nome_usuario = $_SESSION['sessaousuario']->nome_usuario;
    $nivel = $_SESSION['sessaousuario']->nivel;
    $idusuario = $_SESSION['sessaousuario']->idusuario;
}
?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br" lang="pt-br">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" href="../imagens/faveicon.png" type="image/x-icon"/>
        <script type="text/javascript" src="../js/jquery-2.1.0.min.js"></script>
        <script type="text/javascript" src="../js/underscore.js"></script>
        <link href="../css/admin.css" rel="stylesheet"/>
        <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
            <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
            <script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>

            <title>@prenda</title>

            <link href="../css/site.css" rel="stylesheet"/>

    </head>
    <body>
        <div id="main">
            <div id="header">
                <a href="index.php"><img id="cabecalho_logo" src="../imagens/logo_final_escuro.jpg"></a>
                <nav id="menu">
                    <ul>
                        <li><a href="#" ">Contato</a></li>

                        <?php
                        if (isset($_SESSION["sessaousuario"]) && $nivel == 0) {
                            echo "<li><a href='../admin/interna.php'>Área Administração</a></li>";
                        }
                        ?>
                        <?php
                        if (isset($_SESSION["sessaousuario"]) && $nivel <= 1) {
                            echo "<li><a href='areaprofessor.php'>Área Professor</a></li>";
                        }
                        ?>
                            <?php
                            if ($_SESSION == null) {
                                echo "<li><a href='cadastro.php'>Cadastro</a></li>";
                            }
                            ?>
                        <li><a href="<?php
                                   if (isset($_SESSION["sessaousuario"])) {
                                       echo "logout.php";
                                   } else {
                                       echo "login.php";
                                   }
                                   ?>" ><?php
                                   if (isset($_SESSION["sessaousuario"])) {
                                       echo "Logout";
                                   } else {
                                       echo "Login";
                                   }
                                   ?></a></li>


                    </ul>
                </nav>

            </div>
            <div class="corpo">